package com.zyf.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient("education-user")
public interface OpenFeignEducationAPI {
    @PostMapping("/api/selectRoleByPermissionURL")
    public List<String> selectRoleEntitiesByPermissionURL(@RequestParam(value = "URL") String URL);
    @GetMapping("/api/selectRoleNameByUserName/{username}")
    public String selectRoleNameByUserName(@PathVariable("username") String username);
}
